import {setData,getData,getStorage,list} from '../../common/storage.js'

export default {
	namespaced:true,
	state:() => ({
		qList:getStorage('qList') || list
	}),
	mutations:{
		changeNum(state,obj){
			state.qList[obj.id - 1].num = obj.num
			setData('qList',state.qList)
		}
	}
}